﻿/**********************************************************\
*  TinyLib - Tile                                          *
*                                                          *
*  A square tile.                                          *
*                                                          *
* (c) Jens Berglind                                        *
*                                                          *
* Last edited by Jens Berglind 26-06-2012                  *
\**********************************************************/ 

using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using AALib.Sprite;

namespace AALib.Tile
{
    public class Tile : AALib.Sprite.Sprite
    {
        #region Fields

        public List<Rectangle> m_rectangles = new List<Rectangle>();
        public int m_index = 0;

        #endregion

        #region Properties

        #endregion

        #region Init

        public Tile(SpriteBatch p_spriteBatch, Texture2D p_texture, Game p_game)
            : base(p_spriteBatch, p_texture, p_game)
        {
            /*
            int frameWidth = texture.Width / (int)frameSize.X;
            int frameHeight = texture.Height / (int)frameSize.Y;

            Rectangle rectangle;
            rectangle.Y = 0 + (frameHeight * strips.Count);
            rectangle.Width = frameWidth;
            rectangle.Height = frameHeight;
            for (int i = 0; i < numberOfFrames; i++)
            {
                rectangle.X = i * frameWidth;
                strip.AddRectangle(rectangle);
            }
            */
        }

        #endregion

        #region Methods

        public override void Draw(GameTime p_gameTime)
        {
            base.Draw(p_gameTime);
        }

        #endregion
    }
}
